package conson.tech.manage.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import conson.tech.manage.app.entity.pojo.AppConfig;
import conson.tech.manage.app.entity.vo.AppConfigAllVo;
import conson.tech.manage.app.entity.vo.DefaultAppVo;
import conson.tech.manage.app.entity.vo.LetterBeanAppVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * InterfaceName: AppConfigMapper
 * Description:
 * Author: HXL
 * Date: 2020/4/23 3:44 下午
 * Version: 1.0
 */
public interface AppConfigMapper extends BaseMapper<AppConfig> {
    //Page<AppConfig> queryAppPage(Page<AppConfig> page, @Param("pageRequestType") Integer pageRequestType);

    Integer selectAppNumByGroupId(@Param("groupId") Long id);

    int deleteAppConfigByGroupId(@Param("groupId") Long groupId);

    Page<AppConfigAllVo> queryAppConfigPage(Page<AppConfigAllVo> page);

    Page<LetterBeanAppVo> queryLetterBeanApp(Page<LetterBeanAppVo> page);

    Page<DefaultAppVo> queryDefaultApp(Page<DefaultAppVo> page);

    List<AppConfig> queryAppConfigList(@Param("appConfig")AppConfig appConfig, @Param("versionValue") Integer versionValue);

    List<AppConfig> queryIndexByUserId(@Param("userId") Long userId, @Param("versionValue") Integer versionValue);
}
